<!DOCTYPE html>
<html>
<head>
	<title>帮助中心详情</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0, user-scalable=no"/>
	<script src="js/flexible.js"></script>
	<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div>帮助详情{{title}}</div>
<div id="helpDetail">
	<!--	<h1 v-text="title"></h1>-->
	<p v-for="item in list" v-text="item.content">

	</p>
</div>
<script src="js/vue.min.js"></script>
<script src="js/all.js" type="text/javascript" charset="utf-8"></script>
<script src="js/axios.min.js"></script>
<script src="js/message.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    var vm = new Vue({
        el:"#helpDetail",
        data:{
            list:[],
            title:''
        },
        methods:{
            query:function(){
                axios.get(url+"/getContent",{
                    params:{
                        "id": GetQueryString("id")
 //                       "id": "2"

                    },
              headers:{"token":GetQueryString("token")}
  //                headers:{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpdyI6IlRodSBBdWcgMTcgMTU6NTE6MjkgQ1NUIDIwMTcifQ.zKWXamukg65JM7-DjjSJwiyI68xC8NN5VhTpX1Qir24userId:676"}
                }).then(function(data){
                    this.list = data.data.data;
                }.bind(this))
            }
        },
        mounted:function(){
            this.$nextTick(function(){   // 文档加载后调用
                this.query();
//                this.title=GetQueryString("title")
            });
        },
		created: function() {
			document.title = GetQueryString("title").substr(2)
		}
    })
</script>
</body>
</html>
